package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(QueryObject qo);

    int selectMaxSequence(Long catalogId);

    /**
     * 关键字高级查询
     * @param qo
     * @return
     */
    List<StrategyDetail> selectContentByKeyword(QueryObject qo);

    List<String> listTitle();

    List<StrategyDetail> selectByCollectId(List<Integer> collectId);
}